<?php
	session_start();
	require_once('php/include/global.php');	
	require_once('php/include/checks.php');	
	
	ob_start();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="author" content="Wink Hosting (www.winkhosting.com)" />
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<link rel="stylesheet" href="static/css/style.css" type="text/css" />
	<title>RedTie</title>
</head>
<body>
	<div id="page" align="center">
		<div id="content" style="width:800px">
			<div id="logo">
				<div style="margin-top:70px" class="whitetitle">SSIG</div>
			</div>
			<div id="topheader">
				<div align="left" class="bodytext">
					<br />
					<strong>SSIG</strong><br />
					Anno 2011-2011<br />
					Frequenza tempo pieno<br />
					Classe 1A
				</div>
				<div id="toplinks" class="smallgraytext">
					<?php include('php/pages/login.page.php');?>
				</div>
			</div>
			<div id="menu">
				<div align="right" class="smallwhitetext" style="padding:9px;">
					<a href="?p=home">Home</a> | <a href="?p=materie">Materie</a> | <a href="#">Agenda</a> | <a href="#">Orario</a><?php if($user->isLogged()) {?> | <a href="?logout">Logout</a><?php }?>
				</div>
			</div>
			<div id="submenu">
				<div align="right" class="smallgraytext" style="padding:9px;">
					<a href="#">Submenu 1</a> | <a href="#">Submenu 2</a> | <a href="#">Submenu 3</a> | <a href="#">Submenu 4</a> | <a href="#">Submenu 5</a> | <a href="#">Submenu 6</a>
				</div>
			</div>
			<div id="contenttext">
				<?php 
					if(!isset($_GET['p'])) { 
						$_GET['p'] = 'home'; 
					}
						
					switch($_GET['p']) {
				    	case 'home':
							include('php/pages/home.page.php');
				   		break;
				   		case 'registration':
							include('php/pages/registration.page.php');
				   		break;
				   		case 'registrationSuccess':
				   			include('php/pages/afterRegistration.page.php');
				   		break;
				   		case 'materie':
				   			include('php/pages/materie.page.php');
				   		break;
				    	default:
							echo '<p>';
								include('php/pages/notFound.php');
				  			echo '</p>';
				   		break;
					
				 	}
					
				?>
				
			<div id="leftpanel">
				<div align="justify" class="graypanel">
					<span class="smalltitle">News</span><br /><br />
					<span class="smallredtext">September 27, 2006</span><br />
					<span class="bodytext">Curabitur arcu tellus, suscipit in, aliquam eget, ultricies id, sapien. Nam est.</span><br />
					<a href="#" class="smallgraytext">More...</a><br /><br />
					<span class="smallredtext">September 27, 2006</span><br />
					<span class="bodytext">Curabitur arcu tellus, suscipit in, aliquam eget, ultricies id, sapien. Nam est.</span><br />
					<a href="#" class="smallgraytext">More...</a><br /><br />
					<span class="smallredtext">September 27, 2006</span><br />
					<span class="bodytext">Curabitur arcu tellus, suscipit in, aliquam eget, ultricies id, sapien. Nam est.</span><br />
					<a href="#" class="smallgraytext">More...</a><br /><br />
				</div>
			</div>
			<div id="footer" class="smallgraytext">
				Copyright &copy; 20111 :: SSIG Homework Project - created by Stefano Poncini 
			</div>
		</div>
	</div>
</body>
</html>